/***************************************************************
 * Name:      RegionEditorMain.h
 * Purpose:   Defines Application Frame
 * Author:    JackyLian (248023406@qq.com)
 * Created:   2012-12-20
 * Copyright: JackyLian ()
 * License:
 **************************************************************/

#ifndef REGIONEDITORMAIN_H
#define REGIONEDITORMAIN_H

//(*Headers(RegionEditorFrame)
#include <wx/listctrl.h>
#include <wx/srchctrl.h>
#include <wx/sizer.h>
#include <wx/menu.h>
#include <wx/panel.h>
#include <wx/filedlg.h>
#include <wx/button.h>
#include <wx/dirdlg.h>
#include <wx/frame.h>
#include <wx/statusbr.h>
//*)

class RegionListCtrl;

class RegionEditorFrame: public wxFrame
{
    public:

        RegionEditorFrame(wxWindow* parent,wxWindowID id = -1);
        virtual ~RegionEditorFrame();

    private:

        //(*Handlers(RegionEditorFrame)
        void OnQuit(wxCommandEvent& event);
        void OnAbout(wxCommandEvent& event);
        void OnOpen(wxCommandEvent& event);
        void OnResize(wxSizeEvent& event);
        void OnSave(wxCommandEvent& event);
        void OnRegionVeiwBeginLabelEdit(wxListEvent& event);
        void OnRegionVeiwColumnClick(wxListEvent& event);
        void OnRegionVeiwItemActivated(wxListEvent& event);
        void OnSearchCtrlSearchClicked(wxCommandEvent& event);
        void Onm_newRegionClick(wxCommandEvent& event);
        //*)

        //(*Identifiers(RegionEditorFrame)
        static const long ID_BUTTON1;
        static const long ID_SEARCHCTRL1;
        static const long ID_PANEL1;
        static const long ID_LISTCTRL1;
        static const long idMenuOpen;
        static const long idMenuSave;
        static const long idMenuQuit;
        static const long idMenuAbout;
        static const long ID_STATUSBAR1;
        //*)

        //(*Declarations(RegionEditorFrame)
        wxDirDialog* m_saveDirDlg;
        RegionListCtrl* m_regionVeiw;
        wxSearchCtrl* m_searchCtrl;
        wxMenuItem* MenuItem4;
        wxFileDialog* m_fileDlg;
        wxMenuItem* MenuItem3;
        wxPanel* m_toolPanel;
        wxStatusBar* StatusBar1;
        wxButton* m_newRegion;
        //*)

        DECLARE_EVENT_TABLE()
};

#endif // REGIONEDITORMAIN_H
